package com.dhu.service.impl;

import com.dhu.dao.FileMapper;
import com.dhu.pojo.FileBean;
import com.dhu.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FileServiceImpl implements FileService {

    @Autowired
    private FileMapper fileMapper;

    @Override
    public int addFile(FileBean fileBean) {
        try {
            return fileMapper.addFile(fileBean);
        } catch (Exception e) {
            return -1;
        }
    }
}
